/*
 * @Descripttion:
 * @TapdLink: https://XXX
 * @DesignsLink: https://XXX
 * @RelatedPersons: XXX[市场]、XXX[产品]、XXX[前端]、XXX[后端]、XXX[设计]
 * @version: 1.0.0
 * @Author: Shentong
 * @LastEditors: Shentong
 * @Date: 2021-09-24 11:32:10
 */
import { server } from './server'

interface IGoodsReq {
  shopId: string
}
// 商品信息
export const getGoods = params => {
  const { shopId } = params
  return server.POST<IGoodsReq, any>(`/shop/goods?shopId=${shopId}`)
}

export const getShopInfo = params => {
  const { shopId } = params
  return server.POST<IGoodsReq, any>(`/shop/info?shopId=${shopId}`)
}

export const getShopSet = params => {
  const { shopId } = params
  return server.POST<IGoodsReq, any>(`/shop/set?shopId=${shopId}`)
}
